<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="jquery.min.js"></script>
</head>
<body>

<div class="box1"></div>
<div id="box2"></div>
<script>

    // $(); 就代表了调用核心函数
    $(function () {
        alert("hello word")

        var $box1 = $('.box1');
        var $box2 = $('.box1');

        console.log($box1);
        console.log($box2);


        var $p = $('<p>我是段落</p>');
        console.log($p);

        $box1.append($p)
    })


</script>


</body>
</html>